package com.bdqn.t308.controller;

import org.apache.log4j.Logger;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class LoginController {


    private Logger logger = Logger.getLogger(LoginController.class);

    /**
     * 去到登录页面
     * @return
     */
    @RequestMapping("/login")
    public String toLogin(){

        System.out.println("去到login.jsp");
        return "login";
    }

    @RequestMapping("/index")
    public String toIndex(){

        return "index";
    }


}
